//
//  TPPicker_general.h
//  TPPickerDemo
//
//  Created by 谭鹏 on 2017/8/4.
//  Copyright © 2017年 谭鹏. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TPPicker_base.h"
@class TPPicker_general;
@protocol TPPicker_generalDataSource <NSObject>


- (NSInteger)picker:(TPPicker_general*)pciker tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
- (UITableViewCell *)picker:(TPPicker_general*)pciker tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
@optional
- (CGFloat)picker:(TPPicker_general*)pciker widthFortableView:(UITableView *)tableView ;
@end


@interface TPPicker_general : TPPicker_base
@property id<TPPicker_generalDataSource>  dataSource;
@property NSArray<UITableView *> * tableViews;
-(void)setTableViews:(NSArray<UITableView *> *)tableViews height:(CGFloat)height;
- (void)reloadDataSource;
@end
